import request from '@/utils/request'

// 查询记事本列表
export function listMyNote(query) {
  return request({
    url: '/my/myNote/list',
    method: 'get',
    params: query
  })
}

<<<<<<< HEAD
// 查询记事本列表
export function listcount(query) {
  return request({
    url: '/my/myNote/listCount',
    method: 'get',
    params: query
  })
}

=======
>>>>>>> 260ca11a12a6e353375de1bfd8f7264a63d0cf7a
// 查询记事本详细
export function getMyNote(myNoteId) {
  return request({
    url: '/my/myNote/' + myNoteId,
    method: 'get'
  })
}

// 新增记事本
export function addMyNote(data) {
  return request({
    url: '/my/myNote',
    method: 'post',
    data: data
  })
}

// 修改记事本
export function updateMyNote(data) {
  return request({
    url: '/my/myNote',
    method: 'put',
    data: data
  })
}

// 删除记事本
export function delMyNote(myNoteId) {
  return request({
    url: '/my/myNote/' + myNoteId,
    method: 'delete'
  })
}

// 导出记事本
export function exportMyNote(query) {
  return request({
    url: '/my/myNote/export',
    method: 'get',
    params: query
  })
<<<<<<< HEAD
}

// 刷新字典缓存
export function refreshCache() {
  return request({
    url: '/my/myNote/export/refreshCache',
    method: 'delete'
  })
}

// 获取字典选择框列表
export function optionselect() {
  return request({
    url: '/my/myNote/export/optionselect',
    method: 'get'
  })
=======
>>>>>>> 260ca11a12a6e353375de1bfd8f7264a63d0cf7a
}